package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色菜单关联表
 * </p>
 *
 * @author 吕正睿
 * @since 2018-11-13
 */
@TableName("pt_role_menu")
public class PtRoleMenu extends Model<PtRoleMenu> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 角色ID
     */
	@TableField("r_id")
	private Long rId;
    /**
     * 菜单ID
     */
	@TableField("m_id")
	private Long mId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getrId() {
		return rId;
	}

	public void setrId(Long rId) {
		this.rId = rId;
	}

	public Long getmId() {
		return mId;
	}

	public void setmId(Long mId) {
		this.mId = mId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PtRoleMenu{" +
			"id=" + id +
			", rId=" + rId +
			", mId=" + mId +
			"}";
	}
}
